﻿using System;
namespace Gx.Model
{
    [Serializable]
    public partial class M_SocialSecurityInfo
    {
        private int _id;
        private bool _isenable;
        private DateTime _enabletime;
        private string _name;
        private int _provinceid;
        private int _cityid;
        private decimal _personalratio;
        private decimal _perpension;
        private decimal _permedicare;
        private decimal _perbear;
        private decimal _perunemployment;
        private decimal _perinjuries;
        private decimal _perrettungs;
        private decimal _personalanteil;
        private decimal _personalanteilratio;
        private decimal _companyratio;
        private decimal _compension;
        private decimal _commedicare;
        private decimal _combear;
        private decimal _comunemployment;
        private decimal _cominjuries;
        private decimal _fundanteil;
        private decimal _companpfundanteil;
        private decimal _companpfundanteilratio;
        private int _status;
        private DateTime _addtime;
        private int _adduser;
        private DateTime _lastedittime;
        private int _lastedituser;
        public int Id
        {
            get
            {
                return _id;
            }
            set { _id = value; }
        }
        public bool IsEnable
        {
            get
            {
                return _isenable;
            }
            set { _isenable = value; }
        }
        public DateTime EnableTime
        {
            get
            {
                if (_enabletime == DateTime.MinValue)
                {
                    return DateTime.Parse("1911-01-01");
                }
                return _enabletime;
            }
            set { _enabletime = value; }
        }
        public string Name
        {
            get
            {
                if (_name == null)
                {
                    return "";
                }
                return _name;
            }
            set { _name = value; }
        }
        public int ProvinceId
        {
            get
            {
                return _provinceid;
            }
            set { _provinceid = value; }
        }
        public int CityId
        {
            get
            {
                return _cityid;
            }
            set { _cityid = value; }
        }
        public decimal PersonalRatio
        {
            get
            {
                return _personalratio;
            }
            set { _personalratio = value; }
        }
        public decimal PerPension
        {
            get
            {
                return _perpension;
            }
            set { _perpension = value; }
        }
        public decimal PerMedicare
        {
            get
            {
                return _permedicare;
            }
            set { _permedicare = value; }
        }
        public decimal PerBear
        {
            get
            {
                return _perbear;
            }
            set { _perbear = value; }
        }
        public decimal PerUnemployment
        {
            get
            {
                return _perunemployment;
            }
            set { _perunemployment = value; }
        }
        public decimal PerInjuries
        {
            get
            {
                return _perinjuries;
            }
            set { _perinjuries = value; }
        }
        public decimal PerRettungs
        {
            get
            {
                return _perrettungs;
            }
            set { _perrettungs = value; }
        }
        public decimal PersonalAnteil
        {
            get
            {
                return _personalanteil;
            }
            set { _personalanteil = value; }
        }
        public decimal PersonalAnteilRatio
        {
            get
            {
                return _personalanteilratio;
            }
            set { _personalanteilratio = value; }
        }
        public decimal CompanyRatio
        {
            get
            {
                return _companyratio;
            }
            set { _companyratio = value; }
        }
        public decimal ComPension
        {
            get
            {
                return _compension;
            }
            set { _compension = value; }
        }
        public decimal ComMedicare
        {
            get
            {
                return _commedicare;
            }
            set { _commedicare = value; }
        }
        public decimal ComBear
        {
            get
            {
                return _combear;
            }
            set { _combear = value; }
        }
        public decimal ComUnemployment
        {
            get
            {
                return _comunemployment;
            }
            set { _comunemployment = value; }
        }
        public decimal ComInjuries
        {
            get
            {
                return _cominjuries;
            }
            set { _cominjuries = value; }
        }
        public decimal FundAnteil
        {
            get
            {
                return _fundanteil;
            }
            set { _fundanteil = value; }
        }
        public decimal CompanpFundAnteil
        {
            get
            {
                return _companpfundanteil;
            }
            set { _companpfundanteil = value; }
        }
        public decimal CompanpFundAnteilRatio
        {
            get
            {
                return _companpfundanteilratio;
            }
            set { _companpfundanteilratio = value; }
        }
        public int Status
        {
            get
            {
                return _status;
            }
            set { _status = value; }
        }
        public DateTime AddTime
        {
            get
            {
                if (_addtime == DateTime.MinValue)
                {
                    return DateTime.Parse("1911-01-01");
                }
                return _addtime;
            }
            set { _addtime = value; }
        }
        public int AddUser
        {
            get
            {
                return _adduser;
            }
            set { _adduser = value; }
        }
        public DateTime LastEditTime
        {
            get
            {
                if (_lastedittime == DateTime.MinValue)
                {
                    return DateTime.Parse("1911-01-01");
                }
                return _lastedittime;
            }
            set { _lastedittime = value; }
        }
        public int LastEditUser
        {
            get
            {
                return _lastedituser;
            }
            set { _lastedituser = value; }
        }
    }
}
